
<link rel="stylesheet" type="text/css" href="{{asset('/css/loader.css')}}">
    <span class="msg-text">通知发送中，请稍后...</span>
    <div id="preloader6" style="margin: 0 auto">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>
<script type="text/javascript" src="{{asset('/js/loader.js')}}"></script>
<script type="text/javascript">
    $(function () {
        clock = setInterval(doLoop, 3000); //三秒执行一次

        function doLoop()
        {
            $.ajax({
                type: "get",
                dataType: "json",
                url: '/admin/worldcup/endmsg',
                data: {},
                success: function (data) {
                    if (data.flag) {
                       $(".msg-text").text('消息发送完成！');
                       $("#preloader6").css("display", "none");
                       clearInterval(clock);
                    }
                }
            }); 
        }
    });
</script>
